<?php
include_once('../includes/definer.php');
include_once(INC.'admin/php/bootstrap.php');
@unlink(INC.'content/'.$_POST['carpeta'].$_POST['src']);
@unlink(INC.'content/'.$_POST['carpeta'].'thumb/'.$_POST['src']);
@unlink(INC.'content/'.$_POST['carpeta'].'gallery/'.$_POST['src']);
@unlink(INC.'content/'.$_POST['carpeta'].'o/'.$_POST['src']);
if ($_POST['id']) {
    $imagen = Doctrine::getTable('imagen')->find($_POST['id']);
    $imagen->src = null;
    $imagen->save();
}
?>
